package main

import "fmt"

type People struct {
	Name string `json:"name"`
	Age  int    `json:"age"`
}

func main() {
	var a = []*People{{"张三", 12}, {"李四", 13}}

	src := make([]*People, len(a))

	copy(src, a)

	for i := range src {
		people := src[i]
		people.Name = people.Name + "1"
	}

	fmt.Printf("%#v", a)

	fmt.Printf("%#v", src)

}
